package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitSelectListRouter(Router *gin.RouterGroup) {
	SelectListRouter := Router.Group("selectList").Use(middleware.OperationRecord())
	{
		SelectListRouter.POST("createSelectList", v1.CreateSelectList)   // 新建SelectList
		SelectListRouter.DELETE("deleteSelectList", v1.DeleteSelectList) // 删除SelectList
		SelectListRouter.DELETE("deleteSelectListByIds", v1.DeleteSelectListByIds) // 批量删除SelectList
		SelectListRouter.PUT("updateSelectList", v1.UpdateSelectList)    // 更新SelectList
		SelectListRouter.GET("findSelectList", v1.FindSelectList)        // 根据ID获取SelectList
		SelectListRouter.GET("getSelectListList", v1.GetSelectListList)  // 获取SelectList列表
		SelectListRouter.POST("recommend", v1.Recommend)                  // 赞选品
		SelectListRouter.POST("unRecommend", v1.Unrecommend)              // 踩选品
	}
}
